package core.pojos;

import java.util.ArrayList;
import java.util.Date;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;

/**
 *
 * @author Royal
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class DriveItem {

    private static final String MINETYPE_FOLDER = "application/vnd.google-apps.folder";

    public String downloadUrl;
    public String fileExtension;
    public String title;
    public long fileSize;
    public String id;
    public String mimeType;
    public Date modifiedDate;

    public boolean isDir() {
        return mimeType.equalsIgnoreCase(MINETYPE_FOLDER);
    }
}
